<!--用户操作日志-->
<template>
  <DataTable url="userOperation/list" pageable  ref="ds">
    <template #tools="table">
      <Input type="text" v-model="table.params.user" placeholder="用户"/>
      <Space/>
      <Input type="text" v-model="table.params.operate" placeholder="操作"/>
    </template>
    <template #tool-buttons="table">
      <Button  @click="table.reload()" icon="jeicon-search" icon-circle></Button>
    </template>
    <template #default="table">
      <Table :datas="table.data" :loading="table.loading" >
        <TableItem title="序号" prop="_index" :width="50"></TableItem>
        <TableItem title="用户" prop="user"></TableItem>
        <TableItem title="用户类型" prop="userType"></TableItem>
        <TableItem title="操作类型" prop="operateType"></TableItem>
        <TableItem title="操作" prop="operate"></TableItem>
        <TableItem title="请求路径" prop="path"></TableItem>
        <TableItem title="IP" prop="ip"></TableItem>
        <TableItem title="操作时间" prop="createTime" :format="formatDate" :width="160"></TableItem>
      </Table>
    </template>
  </DataTable>
</template>
<script setup>
import {ajax, util} from 'framework'

 const formatDate=util.format("yyyy-MM-dd HH:mm:ss")

</script>
